package com.qf.service.impl;

import com.qf.dao.IUserDao;
import com.qf.dao.impl.UserImpl;
import com.qf.entity.User;
import com.qf.service.IUserService;

import java.util.List;

/**
 * @author zewei
 * @create_time 2023/2/23
 */
public class UserServiceImpl implements IUserService {
    private IUserDao userDao=new UserImpl();
    @Override
    public int delete(Integer id) {
        return userDao.delete(id);
    }

    @Override
    public int update(User user) {

        return userDao.update(user);

    }

    @Override
    public List<User> queryList() {
        return userDao.queryList();
    }

    @Override
    public int insert(User user) {
        return userDao.insert(user);
    }
}
